package com.zzf.策略模式;

public class Test {

    static void test(Action action){
        new Fun(action).fun();
    }

    public static void main(String[] args) {
        //test(new ActionImpl());

        test(new Action() {
            @Override
            public void doFour() {
                System.out.println("听夜的第七章");
            }

            @Override
            public void doSix() {
                System.out.println("看MV");
            }
        });
    }
}
